
<head>
<script type="text/javascript"src="reserve.js"></script> 
</head>
<?php
session_start();
if(isset ($_SESSION['adminability'])){
    include_once 'admin_header.php';
}else{
include 'header.php';
}
include_once 'data_access.php';
$connect=new database_access();
$connect->connect();
        echo '<div id="left">	<div class="left_top"></div>';
        include 'student.php';  
if(isset ($_SESSION['personalnumber'])){
$student=new student();
$student->name=$student->GetName($_SESSION['personalnumber']);
$student->building_number=$student->buildingnum($_SESSION['personalnumber']);
echo '  <br><br> <center><p  style="font-size: large; color: #990000; " >
مرحبا بك   '.$student->name. 
'</p></center>';
echo"   
<center><h1>يرجى الحجز فى احدى غرف مبنى 
".$student->building_number."</h1></center>
<div id='result'></div>   
";

$student->show_all_rooms();
}
      echo '</div><div id="main_bot"></div>';
        include 'footer.php';  
        ?>

